package cn.wolfcode.gitflow.web.controller;

import cn.wolfcode.gitflow.domain.User;
import cn.wolfcode.gitflow.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by 甘静斌 on 2020-10-14 19:30
 */
@RestController
public class ScoreController {

    @Autowired
    private IUserService userService;

    @RequestMapping("/get")
    public User get(Long id){
        return userService.get(id);
    }

}
